Optimal. Leaf size=68 \[ -\frac {8 a^2 b \sqrt {a \sin (e+f x)}}{5 f \sqrt {b \tan (e+f x)}}-\frac {2 b (a \sin (e+f x))^{5/2}}{5 f \sqrt {b \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {2678, 2669}
\begin {gather*} -\frac {8 a^2 b \sqrt {a \sin (e+f x)}}{5 f \sqrt {b \tan (e+f x)}}-\frac {2 b (a \sin (e+f x))^{5/2}}{5 f \sqrt {b \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2669
Rule 2678
Rubi steps
\begin {align*} \int (a \sin (e+f x))^{5/2} \sqrt {b \tan (e+f x)} \, dx &=-\frac {2 b (a \sin (e+f x))^{5/2}}{5 f \sqrt {b \tan (e+f x)}}+\frac {1}{5} \left (4 a^2\right ) \int \sqrt {a \sin (e+f x)} \sqrt {b \tan (e+f x)} \, dx\\ &=-\frac {8 a^2 b \sqrt {a \sin (e+f x)}}{5 f \sqrt {b \tan (e+f x)}}-\frac {2 b (a \sin (e+f x))^{5/2}}{5 f \sqrt {b \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 51, normalized size = 0.75 \begin {gather*} -\frac {a^2 \sqrt {a \sin (e+f x)} (8 \cot (e+f x)+\sin (2 (e+f x))) \sqrt {b \tan (e+f x)}}{5 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(492\) vs.
\(2(56)=112\).
time = 6.01, size = 493, normalized size = 7.25
method | result | size |
default | \(\frac {\left (a \sin \left (f x +e \right )\right )^{\frac {5}{2}} \left (4 \left (\cos ^{3}\left (f x +e \right )\right )-5 \cos \left (f x +e \right ) \ln \left (-\frac {2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1}{\sin \left (f x +e \right )^{2}}\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}+5 \cos \left (f x +e \right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \ln \left (-\frac {2 \left (2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1\right )}{\sin \left (f x +e \right )^{2}}\right )-5 \ln \left (-\frac {2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1}{\sin \left (f x +e \right )^{2}}\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}+5 \ln \left (-\frac {2 \left (2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1\right )}{\sin \left (f x +e \right )^{2}}\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-20 \cos \left (f x +e \right )\right ) \sqrt {\frac {b \sin \left (f x +e \right )}{\cos \left (f x +e \right )}}}{10 f \sin \left (f x +e \right )^{3}}\) | \(493\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 71, normalized size = 1.04 \begin {gather*} \frac {2 \, {\left (a^{2} \cos \left (f x + e\right )^{3} - 5 \, a^{2} \cos \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}}}{5 \, f \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.33, size = 80, normalized size = 1.18 \begin {gather*} \frac {a^2\,\sqrt {a\,\sin \left (e+f\,x\right )}\,\left (18\,\sin \left (2\,e+2\,f\,x\right )-\sin \left (4\,e+4\,f\,x\right )\right )\,\sqrt {\frac {b\,\sin \left (2\,e+2\,f\,x\right )}{\cos \left (2\,e+2\,f\,x\right )+1}}}{10\,f\,\left (\cos \left (2\,e+2\,f\,x\right )-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________